//
//  WXeightCollectionViewCell.m
//  Big Show
//
//  Created by dlios on 15-5-18.
//  Copyright (c) 2015年 Big_Q. All rights reserved.
//

#import "WXeightCollectionViewCell.h"

@interface WXeightCollectionViewCell ()
@property (nonatomic, retain) UILabel *label1;
@property (nonatomic, retain) UIImageView *imageView1;
@property (nonatomic, retain) UILabel *label2;
@end

@implementation WXeightCollectionViewCell
- (void)dealloc
{
    [_label1 release];
    [_imageView1 release];
    [_label2 release];
    [super dealloc];
}

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.label1 = [[UILabel alloc] init];
        _label1.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_label1];
        [_label1 release];
        
        self.imageView1 = [[UIImageView alloc] init];
        _imageView1.backgroundColor = [UIColor orangeColor];
        [self.contentView addSubview:_imageView1];
        [_imageView1 release];
        
        self.label2 = [[UILabel alloc] init];
        _label2.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_label2];
        [_label2 release];
    }
    return self;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    _label1.frame = CGRectMake(10, 10, self.contentView.bounds.size.width-20, 35);
    _imageView1.frame = CGRectMake(10, _label1.frame.size.height+20, self.contentView.frame.size.width-20, 200);
    _label2.frame = CGRectMake(10, self.imageView1.frame.size.height+60, self.contentView.bounds.size.width-20, 35);
}

-(void)setFindModel:(XHFindModel *)findModel
{
    if (_findModel != findModel) {
        [_findModel release];
        _findModel = [findModel retain];
    }
    // 赋值
    
    
}
@end
